import request from "@/util/request.js"

export function getCameraList(param) {
	return request({
		url: '/camera/bind/list',
		method: 'post',
		data: param
	})
}

export function pageGetCameraImg(param) {
	return request({
		url: '/camera/img/pageGet',
		method: 'post',
		data: param
	})
}

export function deleteCameraImg(param) {
	return request({
		url: '/camera/img/delete',
		method: 'post',
		data: param
	})
}

export function getCameraDeviceList(param) {
	return request({
		url: '/camera/pageGet',
		method: 'post',
		data: param
	})
}

export function getCameraAuthList(param) {
	return request({
		url: '/camera/auth/pageGet',
		method: 'post',
		data: param
	})
}

export function pushCloud(param) {
	return request({
		url: '/camera/stream/push',
		method: 'post',
		data: param
	})
}

export function stopCloud(param) {
	return request({
		url: '/camera/stream/close',
		method: 'post',
		data: param
	})
}


export function sendActionCommand(param) {
	return request({
		url: '/camera/control',
		method: 'post',
		data: param
	})
}
